<template>
	<view class="privacy-container">
		<view class="title">{{privacyContent.title}}</view>
		<rich-text :nodes="privacyContent.content"></rich-text>
	</view>
</template>

<script>
	import {
		appoint
	} from "@/api/loginApi/login.js"
	export default {
		data() {
			return {
				privacyContent: ''
			}
		},
		methods: {},
		onLoad(option) {
			appoint({
				id: option.value
			}).then(res => {
				if (res.code == 200 && res.data) {
					this.privacyContent = res.data
				}
			})
		}
	}
</script>

<style>
	.privacy-container {
		padding: 20rpx;
	}
	.title{
		font-size: 36rpx;
		font-weight: bold;
		text-align: center;
		margin-bottom: 20rpx;
	}
	rich-text {
		white-space: pre-line;
	}
</style>